package com.powernode.feign;

import com.powernode.feign.hystrix.UserCollectEsFeignHystrix;
import com.powernode.model.ProdEs;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 内容:
 * 作者: cy
 */
@FeignClient(value = "search-service", fallback = UserCollectEsFeignHystrix.class)
public interface UserCollectEsFeign {

    @GetMapping("getProdEsByProdId")
    List<ProdEs> getProdEsByProdId(@RequestParam List<Long> prodIds);


}
